home *** CD-ROM | disk | FTP | other *** search
/ Belgian Amiga Club - ADF Collection / BS1 part 68.7z / BS1 part 68 / Type Smith v2.0 (1993)(Relog)[h SR][WB].7z / Type Smith v2.0 (1993)(Relog)[h SR][WB].adf / Install-TypeSmith < prev    next >
Text File  |  1993-11-18  |  9KB  |  292 lines

  1. ; Installer Script for TypeSmith
  2. ; 11/11/93  Soft-Logik Publishing Corporation
  3.  
  4. ; set up an error cleanup routine
  5. (onerror
  6.     (makeassign "TSsrc" (safe))
  7.     (makeassign "TSdest" (safe))
  8. )
  9.  
  10. ;just started
  11. (complete 0)
  12.  
  13. ;cancel the assign in case of installation restart
  14. (makeassign "TSsrc" (safe))
  15. (makeassign "TSdest" (safe))
  16.  
  17. ; get the dest dir for TypeSmith (create it if it does not exist)
  18. (set ts_dest
  19.     (tackon
  20.         (askdir
  21.             (prompt "Where should TypeSmith be installed? (A drawer named `TypeSmith' will be created there.) If you're updating and want to keep 1.0, rename its drawer now.")
  22.             (help @askdir-help)
  23.             (default @default-dest)
  24.         )
  25.         "TypeSmith"
  26.     )
  27. )
  28. (makeassign "TSdest"
  29.     (pathonly ts_dest)
  30.     (safe)
  31. )
  32. (if (exists "TSdest:TypeSmith")
  33.     (+ 1 1)
  34.     (makedir
  35.         "TSdest:TypeSmith"
  36.         (infos)
  37.         (safe)
  38.     )
  39. )
  40.  
  41. ;We now have a valid destination, so tell Installer where TS will end up
  42. ;so the exit page will be correct.
  43. (set @default-dest ts_dest)
  44.  
  45. ;lock on to volume 'TypeSmith'
  46. (askdisk
  47.     (prompt "Please put the TypeSmith disk is in any drive.")
  48.     (help "\n\n\n\nThis is required to install TypeSmith 2.0.")
  49.     (dest   "TypeSmith")
  50.     (newname "TSsrc")
  51. )
  52.  
  53. (complete 10)
  54.  
  55. ;Copy the LHEX program to ram:
  56. (copyfiles
  57.     (source "TSsrc:lhex")
  58.     (dest "ram:")
  59. )
  60. (copyfiles
  61.     (source "TSsrc:ReadMe.Now")
  62.     (dest "TSdest:TypeSmith")
  63. )
  64.  
  65. ;copy program files from source to dest
  66. (if
  67.     (askbool
  68.         (prompt "\n\n\n\n\nDo you want to copy the TypeSmith program?")
  69.         (help "\n\nClicking 'Copy' will copy the TypeSmith program and TSFiles drawer to your system. Clicking 'Do Not Copy' will skip to the next step. If you have already installed the TypeSmith 2.0 program and TSFiles drawer and just want to install other files, click 'Do Not Copy'.")
  70.         (choices "Copy" "Do Not Copy")
  71.         (default 1)
  72.     )
  73.     (
  74.         (copyfiles
  75.             (source "TSsrc:TypeSmith")
  76.             (dest "TSdest:TypeSmith")
  77.             (infos)
  78.         )
  79.         (complete 40)
  80.         (copyfiles
  81.         (source "TSsrc:TSFiles")
  82.             (dest "TSdest:TypeSmith/TSFiles")
  83.             (all)
  84.         )
  85.     )
  86. )
  87.  
  88. (complete 45)
  89.  
  90. ;copy ARexx files from source to dest
  91. (if
  92.     (askbool
  93.         (prompt "\n\n\n\n\nDo you wish to copy the TypeSmith ARexx macros?")
  94.         (help "\n\nThese files are not required to use TypeSmith. ARexx is a macro scripting language which simplifies repetitive tasks. Sample ARexx macros are included with TypeSmith and will be installed now if you click 'Copy'. To skip this step, click 'Do Not Copy'.")
  95.         (choices "Copy" "Do Not Copy")
  96.         (default 1)
  97.     )
  98.     (
  99.         (working)
  100.         (if (exists "TSdest:TypeSmith/Rexx")
  101.             (+ 1 1)
  102.             (makedir
  103.                 "TSdest:TypeSmith/Rexx"
  104.                 (infos)
  105.                 (safe)
  106.             )
  107.         )
  108.         (run "ram:lhex >NIL: <NIL: -qfw=TSdest:TypeSmith x TSsrc:rexx.lha")
  109.     )
  110. )
  111.  
  112. (complete 50)
  113.  
  114. ;copy help files from source to dest
  115. (if
  116.     (askbool
  117.         (prompt "\n\n\n\n\nDo you wish to copy the TypeSmith Help files?")
  118.         (help "These files are not required to use TypeSmith, but provide online documentation to make TypeSmith easier to learn. The help system uses the AmigaGuide program from Commodore.\n\nThis portion of the installation requires that RexxMast be run or be in Sys:System in order to work.")
  119.         (choices "Copy" "Do Not Copy")
  120.         (default 1)
  121.     )
  122.     (
  123.         (working)
  124.         (if (exists "TSdest:TypeSmith/Help")
  125.             (+ 1 1)
  126.             (makedir
  127.                 "TSdest:TypeSmith/Help"
  128.                 (infos)
  129.                 (safe)
  130.             )
  131.         )
  132.         (run "ram:lhex >NIL: <NIL: -qfw=TSdest:TypeSmith x TSsrc:help.lha")
  133.         (if (< (/ (getversion) 65536) 39)
  134.             (
  135.                 (tooltype
  136.                     (dest "TSdest:TypeSmith/Help/English/TypeSmith.help")
  137.                     (setdefaulttool "AmigaGuide")
  138.                 )
  139.                 (copylib
  140.                     (prompt "TypeSmith requires the amigaguide.library for its Help system.")
  141.                     (source "TSsrc:misc/amigaguide.library")
  142.                     (dest "LIBS:")
  143.                     (confirm)
  144.                     (help @copylib-help)
  145.                 )
  146.                 (copylib
  147.                     (prompt "TypeSmith requires the AmigaGuide program for its Help system.")
  148.                     (source "TSsrc:misc/amigaguide")
  149.                     (dest "SYS:Utilities")
  150.                     (confirm)
  151.                     (infos)
  152.                     (help @copylib-help)
  153.                 )
  154.                 (copylib
  155.                     (prompt "AmigaGuide requires its help file for proper operation.")
  156.                     (source "TSsrc:misc/help.guide")
  157.                     (dest "S:")
  158.                     (confirm)
  159.                     (help @copylib-help)
  160.                 )
  161.                 (if
  162.                     (askbool
  163.                         (prompt "\n\nFor TypeSmith's help system to work properly with AmigaGuide, the help file path must be added to AmigaGuide. If you skip this step, you will not be able to use the help system. Click Help for details.")
  164.                         (help "This will create the following file: EnvArc:AmigaGuide/Path. If you already have a file with this name, skip this step and add the following line to it with a text editor:\n\nTypeSmith:Help/English\n\nReboot your computer after installation is complete before using TypeSmith.")
  165.                         (choices "Continue" "Skip This Step")
  166.                         (default 1)
  167.                     )
  168.                     (
  169.                         (makedir "Envarc:AmigaGuide")
  170.                         (copyfiles
  171.                             (source "TSsrc:misc/path")
  172.                             (dest "Envarc:AmigaGuide")
  173.                         )
  174.                     )
  175.                 )
  176.             )
  177.         )
  178.     )
  179. )
  180.  
  181.  
  182. (complete 65)
  183.  
  184. ;copy font files from source to dest
  185. (if
  186.     (askbool
  187.         (prompt "\n\n\n\n\nDo you wish to copy the demo fonts and composition tables?")
  188.         (help "\n\n\n\nThese files are not required, but are recommended for learning TypeSmith.")
  189.         (choices "Copy" "Do Not Copy")
  190.         (default 1)
  191.     )
  192.     (
  193.         (working)
  194.         (if (exists "TSdest:TypeSmith/TSFonts")
  195.             (+ 1 1)
  196.             (makedir
  197.                 "TSdest:TypeSmith/TSFonts"
  198.                 (infos)
  199.                 (safe)
  200.             )
  201.         )
  202.         (run "ram:lhex >NIL: <NIL: -qfw=TSdest:TypeSmith x TSsrc:demofont.lha")
  203.     )
  204. )
  205.  
  206. (complete 70)
  207.  
  208. ;copy art files from source to dest
  209. (if
  210.     (askbool
  211.         (prompt "\n\n\n\n\nDo you wish to copy the demo IFF ILBM and IFF DR2D files?")
  212.         (help   "\n\n\n\nThese files are not required, but are recommended for learning TypeSmith.")
  213.         (choices "Copy" "Do Not Copy")
  214.         (default 1)
  215.     )
  216.     (
  217.         (working)
  218.         (if (exists "TSdest:TypeSmith/TSArt")
  219.             (+ 1 1)
  220.             (makedir
  221.                 "TSdest:TypeSmith/TSArt"
  222.                 (infos)
  223.                 (safe)
  224.             )
  225.         )
  226.         (run "ram:lhex >NIL: <NIL: -qfw=TSdest:TypeSmith x TSsrc:art.lha")
  227.     )
  228. )
  229.  
  230. (complete 75)
  231.  
  232. ;copy Font Downloader from source to dest
  233. (if
  234.     (askbool
  235.         (prompt "\n\n\n\n\nDo you wish to copy the Font Downloader?")
  236.         (help "\n\n\nThe Font Downloader is a separate program used to download PostScript fonts to a PostScript printer before printing from an application.")
  237.         (choices "Copy" "Do Not Copy")
  238.         (default 1)
  239.     )
  240.     (
  241.         (working)
  242.         (run "ram:lhex >NIL: <NIL: -qfw=TSdest:TypeSmith x TSsrc:download.lha")
  243.     )
  244. )
  245.  
  246. (complete 80)
  247.  
  248. ;copy the iff.library
  249. (copylib
  250.     (prompt "TypeSmith requires the iff.library for handling IFF ILBM files.")
  251.     (source "TSsrc:misc/iff.library")
  252.     (dest "LIBS:")
  253.     (confirm)
  254.     (help @copylib-help)
  255. )
  256.  
  257. (complete 90)
  258.  
  259. ;add the assign for TypeSmith: to user-startup
  260. (set tsassign ("Assign TypeSmith: \"%s\"\n" ts_dest))
  261. (startup
  262.         "TypeSmith"
  263.         (prompt "If you would like to start TypeSmith by double clicking on "
  264.             "its project icons you need to add the following line to your "
  265.             "user-startup file:\n\n"
  266.             tsassign
  267.             "\nWould you like this line to be added now automatically?\n\nIMPORTANT: REBOOT YOUR COMPUTER BEFORE RUNNING TYPESMITH 2.0 FOR THE FIRST TIME.")
  268.         (help @startup-help)
  269.         (command tsassign)
  270. )
  271.  
  272. (complete 95)
  273.  
  274. ;un-snapshot the TS drawer icon
  275. (tooltype
  276.     (dest ts_dest)
  277.     (noposition)
  278. )
  279.  
  280. ;remove the cached LHARC program
  281. (delete "ram:lhex")
  282.  
  283. ;done with the install
  284. (complete 100)
  285.  
  286. ;cleanup
  287. (makeassign "TSsrc" (safe))
  288. (makeassign "TSdest" (safe))
  289.  
  290. ;and get out
  291. (exit)
  292.